﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FixedAssets.Module.CheckFA
{
    public partial class FA_Check : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.C_div.Visible = false;
                this.S_div.Visible = false;
                this.E_div.Visible = false;
                this.D_div.Visible = false;
            }
        }

        protected void C1Menu1_ItemClick(object sender, C1.Web.Wijmo.Controls.C1Menu.C1MenuEventArgs e)
        {
            switch (e.Item.Value)
            {
                case "Create":
                    {
                        this.C_div.Visible = true;
                        this.S_div.Visible = false;
                        this.E_div.Visible = false;
                        this.D_div.Visible = false;
                    }
                    break;
                case "Edit":
                    {
                        this.C_div.Visible = false;
                        this.S_div.Visible = false;
                        this.E_div.Visible = true;
                        this.D_div.Visible = false;
                    }
                    break;
                case "Delete":
                    {
                        this.C_div.Visible = false;
                        this.S_div.Visible = false;
                        this.E_div.Visible = false;
                        this.D_div.Visible = true;
                    }
                    break;
                case "Show":
                    {
                        this.C_div.Visible = false;
                        this.S_div.Visible = true;
                        this.E_div.Visible = false;
                        this.D_div.Visible = false;
                    }
                    break;
            }
        }
    }
}